package xinyou.jh.net.heartLaw
{
	import xinyou.jh.net.JHSender;
	import xinyou.net.SocketConnection;
	
	/**
	 * 
	 * @author shanxiao
	 * 发送心法相关的socket信息
	 * 
	 */
	public class HeartLawSender extends JHSender
	{
		public function HeartLawSender(socket:SocketConnection)
		{
			super(socket);
		}
		public function test(id:uint,str2:String=""):void
		{
			send([10,2],id,str2);
		}
		
		
		/**学习心法*/
		public function xuexiXinFa(npcId:int,xinfaId:int):void
		{
			send([135,1],npcId,xinfaId);
		}
		
		/**请求心法列表*/
		public function sendXinFaList(listType:int):void
		{
			send([135,15],listType);
		}
		
		/**装备心法*/
		public function upXinFa(xinfaId:uint,gridId:int):void
		{
			send([135,5],xinfaId,gridId);
		}
		
		/**卸载心法*/
		public function downXinFa(xinfaId:uint):void
		{
			send([135,7],xinfaId);
		}
		
		/**升级心法*/
		public function lvUpXinFa(xinfaId:uint):void
		{
			send([135,3],xinfaId);
		}
		
		/**请求心法信息，包括该心法有哪些武功*/
		public function xinfaInfo(xinfaId:uint):void
		{
			send([135,17],xinfaId);
		}
		
	}
}